package com.why.jvm.hotspot.src.share.vm.oops;

import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/**
 * @author xiaoTian
 * @date 2022/7/21 06:49
 * @Description:
 */
@Data
public class LocalVariableTableAttribute extends AttributeInfo{

    private int localVariableTableLength;

    private List<LocalVariableTable> tables = new ArrayList<>();

    @Override
    public String toString() {
        StringBuffer s = new StringBuffer( "\n\tLocalVariableTableAttribute{" +
                "\n\tlocalVariableTableLength=" + localVariableTableLength);
        tables.forEach(e ->s.append("\t"+e.toString()+"\n"));
        s.append("}");
        return s.toString();
    }
}
